import {IForm} from '@/base-ui/form'

export const usermodalConfig: IForm = {
  formItems: [
    {
      field: 'user_name',
      type: 'input',
      label: '用户姓名',
      placeholder: '用户姓名'
    },
    {
      field: 'user_email',
      type: 'input',
      label: '用户邮箱',
      placeholder: '用户邮箱'
    },
    {
      field: 'user_password',
      type: 'input',
      label: '用户密码',
      placeholder: '默认密码：123456，新建没用',
    },
    {
      field: 'user_department',
      type: 'input',
      label: '用户部门',
      placeholder: '用户部门'
    },
    {
      field: 'user_privilege',
      type: 'select',
      label: '用户权限',
      placeholder: '用户权限',
      options: [
        {title: 'viewer', value: 'viewer'},
        {title: 'maintainer', value: 'maintainer'},
        {title: 'manager', value: 'manager'},
      ]
    },
    {
      field: 'first_language',
      type: 'select',
      label: '用户语言',
      placeholder: '用户语言',
      options: [
        {title: 'Chinese', value: 'zh'},
        {title: 'English', value: 'en'},
        {title: 'Germany', value: 'de'},
      ]
    },
    {
      field: 'user_active',
      type: 'select',
      label: '用户激活',
      placeholder: '用户激活',
      options: [
        {title: '激活', value: 'true'},
        {title: '失效', value: 'false'},
      ]
    },
    {
      field: 'user_email_active',
      type: 'select',
      label: '邮箱激活',
      placeholder: '邮箱激活',
      options: [
        {title: '激活', value: 'true'},
        {title: '失效', value: 'false'},
      ]
    },
    {
      field: 'user_attention',
      type: 'select',
      label: '用户兴趣',
      placeholder: '用户兴趣',
      options: [
        {title: 'vw', value: 'vw'},
        {title: 'audi', value: 'audi'},
      ]
    },
  ],
  colLayout: {span: 24},
  itemStyle: {}
}
